package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 中元
 * @date 2019/03/18
 */
@TableName("user_recharge")
@Data
@ApiModel(value="UserRecharge-用户充值记录")
public class UserRecharge implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "金额")
	@TableField("amount")
	private BigDecimal amount;

	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "订单状态 状态 1-支付中 2-已支付 3-支付失败 4-已退款")
	@TableField("status")
	private Integer status;

	@ApiModelProperty(value = "更新时间")
	@TableField("update_at")
	private Date updateAt;

	@ApiModelProperty(value = "创建时间")
	@TableField("create_at")
	private Date createAt;

	@ApiModelProperty(value = "支付时间")
	@TableField("pay_at")
	private Date payAt;

	@ApiModelProperty(value = "用户id")
	@TableField("user_id")
	private Long userId;

	@ApiModelProperty(value = "删除状态 1-正常 2-删除")
	@TableField("delete_state")
	private Integer deleteState;

	@ApiModelProperty(value = "支付类型 1-微信支付 2-支付宝支付")
	@TableField("pay_type")
	private Integer payType;


	@TableField("out_trade_no")
	private String outTradeNo;//订单唯一识别码


	@ApiModelProperty(value = "支付流水号")
	@TableField("trans_no")
	private String transNo;//支付流水号


	@ApiModelProperty(value = "退款流水号")
	@TableField("cancle_trans_no")
	private String cancleTransNo;//退款流水号


}
